import request from '@/utils/request';


/**
 * 设备统计
 * @param query
 * @returns {*}
 */

export const equipmentStatistic = () => {
  return request({
    url: '/equipment/monitoring/equipmentStatistic',
    method: 'get'
  });
};

/**
 * 设备类型
 * @param query
 * @returns {*}
 */

export const equipmentCategory = () => {
  return request({
    url: '/equipment/monitoring/equipmentCategory',
    method: 'get'
  });
};

/**
 * 设备运行状态——系统列表
 * @param query
 * @returns {*}
 */

export const systemList = () => {
  return request({
    url: '/equipment/monitoring/systemList',
    method: 'get'
  });
};

/**
 * 设备运行状态——系统列表
 * @param query
 * @returns {*}
 */

export const subSystemEquipmentFunction = (systemId: string | number) => {
  return request({
    url: '/equipment/monitoring/subSystemEquipmentFunction/'+ systemId,
    method: 'get'
  });
};

